package com.bailian.spring.ioc.sigleton_lifecycle.bean;

/**
 * @author gaoxu
 * date: Created on 2021/11/1 下午2:53
 */
public class Cat {
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void init() {
        System.out.println(name + "被初始化了...");
    }

    public void destroy() {
        System.out.println(name + "被销毁了....");
    }
}
